package jin.si.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class JsRegion {

  private Integer regionId;
  private String name;
  private Integer parentCode;
  private Integer createId;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date createDate;
  private Integer updateId;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
  private Date updateDate;

  public JsRegion() {
    super();
  }

  public JsRegion(Integer regionId, String name, Integer parentCode, Integer createId, Date createDate, Integer updateId, Date updateDate) {
    this.regionId = regionId;
    this.name = name;
    this.parentCode = parentCode;
    this.createId = createId;
    this.createDate = createDate;
    this.updateId = updateId;
    this.updateDate = updateDate;
  }

  public Integer getRegionId() {
    return regionId;
  }

  public void setRegionId(Integer regionId) {
    this.regionId = regionId;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public Integer getParentCode() {
    return parentCode;
  }

  public void setParentCode(Integer parentCode) {
    this.parentCode = parentCode;
  }

  public Integer getCreateId() {
    return createId;
  }

  public void setCreateId(Integer createId) {
    this.createId = createId;
  }

  public Date getCreateDate() {
    return createDate;
  }

  public void setCreateDate(Date createDate) {
    this.createDate = createDate;
  }

  public Integer getUpdateId() {
    return updateId;
  }

  public void setUpdateId(Integer updateId) {
    this.updateId = updateId;
  }

  public Date getUpdateDate() {
    return updateDate;
  }

  public void setUpdateDate(Date updateDate) {
    this.updateDate = updateDate;
  }

  @Override
  public String toString() {
    return "JsRegion{" +
            "regionId=" + regionId +
            ", name='" + name + '\'' +
            ", parentCode=" + parentCode +
            ", createId=" + createId +
            ", createDate=" + createDate +
            ", updateId=" + updateId +
            ", updateDate=" + updateDate +
            '}';
  }
}
